{//咨询师管理学员档案模板}
<include file="Public:header" />
<load file="__ROOT__/js/datepick/jquery.datepick.css" />
<load file="__ROOT__/js/datepick/jquery.datepick.js" />
<load file="__ROOT__/js/datepick/jquery.datepick-zh-CN.js" />
<script type="text/javascript">
    $(function(){
        $(document).ready(function(){
            $('#begin_day').datepick({dateFormat: 'yy_mm_dd'});
            $('#stop_day').datepick({dateFormat: 'yy_mm_dd'});
        });
        $('[name=stu_id]').focus();
        $('#save').click(function(){
            if(check()){
                $("form:first").submit();
            }
        });

        function isNumber(field)
         {
            var   Ret   =   true;
            var   NumStr= "0123456789 ";
            var   chr;
            for   (i=0;i <field.length;++i)
            {
            chr=field.charAt(i);
            if   (NumStr.indexOf(chr,0)==-1)
            {
            Ret=false;
            }
            }
            return(Ret);
        }
    });
</script>
<div class="body">
    <b>学员档案管理：</b>提示：学员档案管理只能看到自己签约的学员档案，并且通过审核的学员档案信息无法修改！
    <br />
    使用学员档案查询功能可方便进行学员的查找，可选择填写一个或多个条件，为空则为不限制该添加。
    <br /><br />
    <form  method="get" action="{:U('ppts/manger_stuinfo')}" name="search">
        <b>学员档案查询：</b><br />姓名：<input type="text" name="stu_name" size="10" value="{$stu_name}" />
    审核状态：
    <select name="shenhe">
        <option value="1"<php>if($shenhe==1) echo ' selected="selected"';</php>>通过</option>
        <option value="0"<php>if($shenhe==0) echo ' selected="selected"';</php>>未通过</option>
    <option value="99"<php>if($shenhe==99) echo ' selected="selected"';</php>>全部</option>
    </select>
    <br />
    录入时间段：<input type="text" id="begin_day" style="cursor: pointer;" name="begin_day" size="8" value="{$begin_day}" readonly />-
    <input type="text" id="stop_day" style="cursor: pointer;" name="stop_day" size="8" value="{$stop_day}" readonly /><br />
    <input type="submit" value="查询" name="b1" />
    </form>
    <br /><br />
    <table width="600" border="1" cellpadding="0" cellspacing="0" style="border-collapse:collapse" bordercolor="#000000">
        <tr style="color:blue;font-weight: bold;">
            
            <td width="15%" align="center">学员姓名</td>
            <td width="10%" align="center">性别</td>
            <td width="20%" align="center">录入时间</td>
            <td width="10%" align="center">状态</td>
            <td width="30%" align="center">操&nbsp;&nbsp;&nbsp;&nbsp;作</td>
        </tr>
        <foreach name="stuinfo_list" item="vo">
            <tr>
                
                <td width="15%" align="center">{$vo.stu_name}</td>
                <td width="10%" align="center">{$vo.stu_sex}</td>
                <td width="20%" align="center">{$vo.stu_inputtime}</td>
                <td width="10%" align="center" style="font-weight: bold;font-size: 15px;">
                    <?php
                    if($vo['shenhe']==0){
                        echo '<font color="red">×</font>';
                    }else{
                        echo '<font color="forestgreen">√</font>';
                    }
                    ?></td>
                <td width="30%" align="center">
                    <?php
                    //dump($vo);
                    if($vo['shenhe']=='0'){
                        echo '[<a href="__APP__/ppts-edit_zx_stu_info?id='.$vo['stu_id'].'&TB_iframe=true&height=300&width=405" class="thickbox">修改</a>]';
                    }
                    //echo '[<a href="__APP__/ppts-zx_del_stuinfo?id='.$vo['stu_id'].'" class="thickbox">删除</a>]';
                    //if($vo['shenhe']=='0' && $vo['tidang']=='0'){
                        //echo '[<a href="__APP__/ppts-zx_del_stuinfo?id='.$vo['stu_id'].'">删除</a>]';
                    //}
                    if($vo['tidang']=='0'){
                        echo '[<a href="__APP__/ppts-zx_stu_tidang?id='.$vo['stu_id'].'">提档</a>]';
                    }
                    ?>
                    [<a href="__APP__/ppts-view_zx_stu_info?id={$vo.stu_id}&TB_iframe=true&height=300&width=405" class="thickbox">详细信息</a>]
                </td>
            </tr>
        </foreach>
        <tr>
            <td width="100%" align="right" colspan="5">{$page}</td>
        </tr>
    </table>
    <br />
</div>
<include file="Public:ender" />